import { createStore } from 'vuex'

export default createStore({
    state: {
        userInfo: null,
    },
    mutations: {
        changeUserInfo(state, payload) {
            console.log(payload);
            state.userInfo = payload
            console.log(state.userInfo);
        },

    },
    actions: {},
    modules: {}
})